package com.youlai.boot.modules.accounts.service;

import com.youlai.boot.modules.accounts.model.entity.PlatformAccount;
import com.youlai.boot.modules.accounts.model.form.PlatformAccountForm;
import com.youlai.boot.modules.accounts.model.query.PlatformAccountQuery;
import com.youlai.boot.modules.accounts.model.vo.PlatformAccountVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 账户明细服务类
 *
 * @author lz0816
 * @since 2025-05-23 15:57
 */
public interface PlatformAccountService extends IService<PlatformAccount> {

    /**
     *账户明细分页列表
     *
     * @return
     */
    IPage<PlatformAccountVO> getPlatformAccountPage(PlatformAccountQuery queryParams);

    /**
     * 获取账户明细表单数据
     *
     * @param id 账户明细ID
     * @return
     */
     PlatformAccountForm getPlatformAccountFormData(Long id);

    /**
     * 新增账户明细
     *
     * @param formData 账户明细表单对象
     * @return
     */
    boolean savePlatformAccount(PlatformAccountForm formData);

    /**
     * 修改账户明细
     *
     * @param id   账户明细ID
     * @param formData 账户明细表单对象
     * @return
     */
    boolean updatePlatformAccount(Long id, PlatformAccountForm formData);

    /**
     * 删除账户明细
     *
     * @param ids 账户明细ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deletePlatformAccounts(String ids);

}
